#pragma once

#define CLEAR_PERIOD                            3600        // in seconds

#define SLEEP_WHEN_NOTHING                      1000        // in milliseconds

#define OVECCOUNT                               30

#define SMALL_CHANGES_SIZE                      75

#define HTTP_STATUS_OK                          200

#define _TID_ GetCurrentThreadId()

#define W3M_ENCODING                            "UTF-8"

#define USER_AGENT_W3M                          0x00000000
#define USER_AGENT_DEFAULT                      0x00000001
#define USER_AGENT_USER_DEFINED                 0x00000002

#define MONITOR_STATUS_ACTIVE                   0x00000001
#define MONITOR_STATUS_ERROR                    0x00000002
#define MONITOR_STATUS_APPROVED                 0x00000004
#define MONITOR_STATUS_ACCOUNT_LIMIT            0x00000008

#define CONTENT_TYPE_UNKNOWN                    0x00000000
#define CONTENT_TYPE_HTML                       0x00000001
#define CONTENT_TYPE_XML                        0x00000002
#define CONTENT_TYPE_RSS                        0x00010000
#define CONTENT_TYPE_ATOM                       0x00020000

#define EMAIL_STATUS_NEED_SEND                  0x00000000
#define EMAIL_STATUS_SENT                       0x00000001
#define EMAIL_STATUS_ERROR                      0x00000002

#define CONTENT_TYPE_TEXT_PLAIN                 0x00000000
#define CONTENT_TYPE_TEXT_HTML                  0x00000001

#define ALERT_TYPE_NONE                         0x00000000
#define ALERT_TYPE_MONITOR_TRIGGERED            0x00000001
#define ALERT_TYPE_MONITOR_ERROR                0x00000002

#define ALERT_NONE                              0x00000000
#define ALERT_WITH_URL                          0x00000001
#define ALERT_WITH_CHANGES_SUMMARY              0x00000002
#define ALERT_WITH_ATTACHMENT                   0x00000100
#define ALERT_RSS                               0x00010000
#define ALERT_ATOM                              0x00020000

#define RESOURCE_STORAGE_STATUS_ERROR           0x00000000
#define RESOURCE_STORAGE_STATUS_FAKE            0x00000001
#define RESOURCE_STORAGE_STATUS_NOT_CHANGED     0x00000002
#define RESOURCE_STORAGE_STATUS_CHANGED         0x00000003
#define RESOURCE_STORAGE_STATUS_TRIGGERED       0x00000004

#define HIGHLIGHT_FONT_STYLE_NORMAL             0x00000000
#define HIGHLIGHT_FONT_STYLE_BOLD               0x00000001
#define HIGHLIGHT_FONT_STYLE_ITALIC             0x00000002
#define HIGHLIGHT_FONT_STYLE_UNDERLINED         0x00000004
#define HIGHLIGHT_FONT_STYLE_STRIKE             0x00000008

#define TRIGGER_ANY_CHANGES                     0x00000000
#define TRIGGER_ANY_WORD_FROM_LIST              0x00000001
#define TRIGGER_ALL_WORDS_FROM_LIST             0x00000002
#define TRIGGER_PHRASE                          0x00000003
#define TRIGGER_REGEX                           0x00000004

#define TRIGGER_FLAG_IN_ADD_TEXT                0x00000000
#define TRIGGER_FLAG_IN_DEL_TEXT                0x00010000
#define TRIGGER_FLAG_SKIP_DIGITS                0x00020000
#define TRIGGER_FLAG_SKIP_SMALL_CHANGES         0x00040000
